<template>
  <input type="text" v-model="model" />
</template>
<script lang="ts" setup>
import { watch } from 'vue';

defineOptions({
  name: 'MyLi',
});

const model = defineModel<any>();

watch(
  model,
  (val) => {
    console.log('model', val);
  },
  { immediate: true }
);

setTimeout(() => {
  model.value[1] = '123';
  // model.value = [...model.value];
  console.log(' performed setTimeout');
}, 2000);
</script>
<!-- <style scoped></style> -->
